﻿<Window x:Class="WpfMessageBox"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     Title="Message" Name="WpfMessageBox" MinHeight="120" MinWidth="250" SizeToContent="WidthAndHeight" WindowStartupLocation="CenterScreen"  ShowInTaskbar="False" ResizeMode="NoResize" WindowStyle="None" Topmost="True">
    
    <Window.Resources>
        <ResourceDictionary Source="BlueSkin.xaml" />
    </Window.Resources>
    <Grid Style="{DynamicResource StyleBackground}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        
        <Grid Grid.Row="0" Grid.ColumnSpan="2" Height="20" Style="{DynamicResource TopBackground}" Opacity="0.6">
            <TextBlock Margin="5,1,0,1" Name="MessageTitle" TextTrimming="CharacterEllipsis" Background="Transparent" />
        </Grid>
        
        <Image Name="MessageImage" Margin="5" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Top" Stretch="None" />
        <TextBlock TextDecorations="None" Margin="1,5,10,5"  TextWrapping="Wrap" Name="MessageBlock" Grid.Row="1" Grid.Column="1" />
       
        
        
        <Grid Grid.Row="2" Grid.ColumnSpan="2" Style="{DynamicResource DownBackground}">
            <StackPanel Orientation="Horizontal"  HorizontalAlignment="Center"  >
                <Button Name="btnOk" Content="OK" Width="70" Margin="3,5"  Style="{DynamicResource ButtonBackground}"></Button>
                <Button Name="btnYes" Content="Yes" Width="70" Margin="3,5" Style="{DynamicResource ButtonBackground}"></Button>
                <Button Name="btnNo" Content="No" Width="70" Margin="3,5" Style="{DynamicResource ButtonBackground}"></Button>
                <Button Name="btnCancel" Content="Cancel" Width="70" Margin="3,5" Style="{DynamicResource ButtonBackground}"></Button>
            </StackPanel>
        </Grid>
    </Grid>
</Window>
